home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / Fonts.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  15.1 KB  |  502 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Fonts.a
  3. ;
  4. ;    Contains:    Font Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    MacOS 8
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__FONTS__') = 'UNDEFINED' THEN
  18. __FONTS__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  24.     include 'Quickdraw.a'
  25.     ENDIF
  26.  
  27.  
  28. systemFont                        EQU        0
  29. applFont                        EQU        1
  30. ;  kPlatformDefaultGuiFontID is used in QuickTime 3.0 
  31.     IF TARGET_OS_MAC THEN
  32.  
  33. kPlatformDefaultGuiFontID        EQU        1
  34.     ELSE
  35.  
  36. kPlatformDefaultGuiFontID        EQU        -1
  37.     ENDIF    ; TARGET_OS_MAC
  38. ;    The following font constants are deprecated.  
  39. ;    Please use GetFNum() to look up the font ID by name.
  40. ;
  41.  
  42.  
  43. kFontIDNewYork                    EQU        2
  44. kFontIDGeneva                    EQU        3
  45. kFontIDMonaco                    EQU        4
  46. kFontIDVenice                    EQU        5
  47. kFontIDLondon                    EQU        6
  48. kFontIDAthens                    EQU        7
  49. kFontIDSanFrancisco                EQU        8
  50. kFontIDToronto                    EQU        9
  51. kFontIDCairo                    EQU        11
  52. kFontIDLosAngeles                EQU        12
  53. kFontIDTimes                    EQU        20
  54. kFontIDHelvetica                EQU        21
  55. kFontIDCourier                    EQU        22
  56. kFontIDSymbol                    EQU        23
  57. kFontIDMobile                    EQU        24
  58.     IF OLDROUTINENAMES THEN
  59.  
  60. newYork                            EQU        2
  61. geneva                            EQU        3
  62. monaco                            EQU        4
  63. venice                            EQU        5
  64. london                            EQU        6
  65. athens                            EQU        7
  66. sanFran                            EQU        8
  67. toronto                            EQU        9
  68. cairo                            EQU        11
  69. losAngeles                        EQU        12
  70. times                            EQU        20
  71. helvetica                        EQU        21
  72. courier                            EQU        22
  73. symbol                            EQU        23
  74. mobile                            EQU        24
  75.     ENDIF    ; OLDROUTINENAMES
  76.  
  77. commandMark                        EQU        17
  78. checkMark                        EQU        18
  79. diamondMark                        EQU        19
  80. appleMark                        EQU        20
  81.  
  82. propFont                        EQU        36864
  83. prpFntH                            EQU        36865
  84. prpFntW                            EQU        36866
  85. prpFntHW                        EQU        36867
  86. fixedFont                        EQU        45056
  87. fxdFntH                            EQU        45057
  88. fxdFntW                            EQU        45058
  89. fxdFntHW                        EQU        45059
  90. fontWid                            EQU        44208
  91. FMInput                    RECORD 0
  92. family                     ds.w    1                ; offset: $0 (0)
  93. size                     ds.w    1                ; offset: $2 (2)
  94. face                     ds.b    1                ; offset: $4 (4)
  95. needBits                 ds.b    1                ; offset: $5 (5)
  96. device                     ds.w    1                ; offset: $6 (6)
  97. numer                     ds        Point            ; offset: $8 (8)
  98. denom                     ds        Point            ; offset: $C (12)
  99. sizeof                     EQU *                    ; size:   $10 (16)
  100.                         ENDR
  101. FMOutput                RECORD 0
  102. errNum                     ds.w    1                ; offset: $0 (0)
  103. fontHandle                 ds.l    1                ; offset: $2 (2)        ;  the previous "privateFontResult" was a mistake! 
  104. boldPixels                 ds.b    1                ; offset: $6 (6)
  105. italicPixels             ds.b    1                ; offset: $7 (7)
  106. ulOffset                 ds.b    1                ; offset: $8 (8)
  107. ulShadow                 ds.b    1                ; offset: $9 (9)
  108. ulThick                     ds.b    1                ; offset: $A (10)
  109. shadowPixels             ds.b    1                ; offset: $B (11)
  110. extra                     ds.b    1                ; offset: $C (12)
  111. ascent                     ds.b    1                ; offset: $D (13)
  112. descent                     ds.b    1                ; offset: $E (14)
  113. widMax                     ds.b    1                ; offset: $F (15)
  114. leading                     ds.b    1                ; offset: $10 (16)
  115. curStyle                 ds.b    1                ; offset: $11 (17)
  116. numer                     ds        Point            ; offset: $12 (18)
  117. denom                     ds        Point            ; offset: $16 (22)
  118. sizeof                     EQU *                    ; size:   $1A (26)
  119.                         ENDR
  120. ; typedef struct FMOutput *                FMOutPtr
  121.  
  122. ; typedef struct FMOutput *                FMOutputPtr
  123.  
  124. FontRec                    RECORD 0
  125. fontType                 ds.w    1                ; offset: $0 (0)        ; font type
  126. firstChar                 ds.w    1                ; offset: $2 (2)        ; ASCII code of first character
  127. lastChar                 ds.w    1                ; offset: $4 (4)        ; ASCII code of last character
  128. widMax                     ds.w    1                ; offset: $6 (6)        ; maximum character width
  129. kernMax                     ds.w    1                ; offset: $8 (8)        ; negative of maximum character kern
  130. nDescent                 ds.w    1                ; offset: $A (10)        ; negative of descent
  131. fRectWidth                 ds.w    1                ; offset: $C (12)        ; width of font rectangle
  132. fRectHeight                 ds.w    1                ; offset: $E (14)        ; height of font rectangle
  133. owTLoc                     ds.w    1                ; offset: $10 (16)        ; offset to offset/width table
  134. ascent                     ds.w    1                ; offset: $12 (18)        ; ascent
  135. descent                     ds.w    1                ; offset: $14 (20)        ; descent
  136. leading                     ds.w    1                ; offset: $16 (22)        ; leading
  137. rowWords                 ds.w    1                ; offset: $18 (24)        ; row width of bit image / 2 
  138. sizeof                     EQU *                    ; size:   $1A (26)
  139.                         ENDR
  140. ; typedef struct FontRec *                FontRecPtr
  141.  
  142. ; typedef FontRecPtr *                    FontRecHdl
  143.  
  144. FMetricRec                RECORD 0
  145. ascent                     ds.l    1                ; offset: $0 (0)        ; base line to top
  146. descent                     ds.l    1                ; offset: $4 (4)        ; base line to bottom
  147. leading                     ds.l    1                ; offset: $8 (8)        ; leading between lines
  148. widMax                     ds.l    1                ; offset: $C (12)        ; maximum character width
  149. wTabHandle                 ds.l    1                ; offset: $10 (16)        ; handle to font width table
  150. sizeof                     EQU *                    ; size:   $14 (20)
  151.                         ENDR
  152.  
  153. ;   typedef struct FMetricRec FMetricRec, *FMetricRecPtr;
  154. ;   typedef FMetricRecPtr *FMetricRecHandle;
  155.  
  156.  
  157. ; typedef struct FMetricRec *            FMetricRecPtr
  158.  
  159. ; typedef FMetricRecPtr *                FMetricRecHandle
  160.  
  161. WidEntry                RECORD 0
  162. widStyle                 ds.w    1                ; offset: $0 (0)        ; style entry applies to
  163. sizeof                     EQU *                    ; size:   $2 (2)
  164.                         ENDR
  165. WidTable                RECORD 0
  166. numWidths                 ds.w    1                ; offset: $0 (0)        ; number of entries - 1
  167. sizeof                     EQU *                    ; size:   $2 (2)
  168.                         ENDR
  169. AsscEntry                RECORD 0
  170. fontSize                 ds.w    1                ; offset: $0 (0)
  171. fontStyle                 ds.w    1                ; offset: $2 (2)
  172. fontID                     ds.w    1                ; offset: $4 (4)        ; font resource ID
  173. sizeof                     EQU *                    ; size:   $6 (6)
  174.                         ENDR
  175. FontAssoc                RECORD 0
  176. numAssoc                 ds.w    1                ; offset: $0 (0)        ; number of entries - 1
  177. sizeof                     EQU *                    ; size:   $2 (2)
  178.                         ENDR
  179. StyleTable                RECORD 0
  180. fontClass                 ds.w    1                ; offset: $0 (0)
  181. offset                     ds.l    1                ; offset: $2 (2)
  182. reserved                 ds.l    1                ; offset: $6 (6)
  183. indexes                     ds.b    48                ; offset: $A (10)
  184. sizeof                     EQU *                    ; size:   $3A (58)
  185.                         ENDR
  186. NameTable                RECORD 0
  187. stringCount                 ds.w    1                ; offset: $0 (0)
  188. baseFontName             ds        Str255            ; offset: $2 (2)
  189. sizeof                     EQU *                    ; size:   $102 (258)
  190.                         ENDR
  191. KernPair                RECORD 0
  192. kernFirst                 ds.b    1                ; offset: $0 (0)        ; 1st character of kerned pair
  193. kernSecond                 ds.b    1                ; offset: $1 (1)        ; 2nd character of kerned pair
  194. kernWidth                 ds.w    1                ; offset: $2 (2)        ; kerning in 1pt fixed format
  195. sizeof                     EQU *                    ; size:   $4 (4)
  196.                         ENDR
  197. KernEntry                RECORD 0
  198. kernStyle                 ds.w    1                ; offset: $0 (0)        ; style the entry applies to
  199. kernLength                 ds.w    1                ; offset: $2 (2)        ; length of this entry
  200. sizeof                     EQU *                    ; size:   $4 (4)
  201.                         ENDR
  202. KernTable                RECORD 0
  203. numKerns                 ds.w    1                ; offset: $0 (0)        ; number of kerning entries
  204. sizeof                     EQU *                    ; size:   $2 (2)
  205.                         ENDR
  206. WidthTable                RECORD 0
  207. tabData                     ds.l    256                ; offset: $0 (0)        ; character widths
  208. tabFont                     ds.l    1                ; offset: $400 (1024)    ; font record used to build table - the previous FontResult was a mistake!
  209. sExtra                     ds.l    1                ; offset: $404 (1028)    ; space extra used for table
  210. style                     ds.l    1                ; offset: $408 (1032)    ; extra due to style
  211. fID                         ds.w    1                ; offset: $40C (1036)    ; font family ID
  212. fSize                     ds.w    1                ; offset: $40E (1038)    ; font size request
  213. face                     ds.w    1                ; offset: $410 (1040)    ; style (face) request
  214. device                     ds.w    1                ; offset: $412 (1042)    ; device requested
  215. inNumer                     ds        Point            ; offset: $414 (1044)    ; scale factors requested
  216. inDenom                     ds        Point            ; offset: $418 (1048)    ; scale factors requested
  217. aFID                     ds.w    1                ; offset: $41C (1052)    ; actual font family ID for table
  218. fHand                     ds.l    1                ; offset: $41E (1054)    ; family record used to build up table
  219. usedFam                     ds.b    1                ; offset: $422 (1058)    ; used fixed point family widths
  220. aFace                     ds.b    1                ; offset: $423 (1059)    ; actual face produced
  221. vOutput                     ds.w    1                ; offset: $424 (1060)    ; vertical scale output value
  222. hOutput                     ds.w    1                ; offset: $426 (1062)    ; horizontal scale output value
  223. vFactor                     ds.w    1                ; offset: $428 (1064)    ; vertical scale output value
  224. hFactor                     ds.w    1                ; offset: $42A (1066)    ; horizontal scale output value
  225. aSize                     ds.w    1                ; offset: $42C (1068)    ; actual size of actual font used
  226. tabSize                     ds.w    1                ; offset: $42E (1070)    ; total size of table
  227. sizeof                     EQU *                    ; size:   $430 (1072)
  228.                         ENDR
  229. ; typedef struct WidthTable *            WidthTablePtr
  230.  
  231. ; typedef WidthTablePtr *                WidthTableHdl
  232.  
  233.  
  234. FamRec                    RECORD 0
  235. ffFlags                     ds.w    1                ; offset: $0 (0)        ; flags for family
  236. ffFamID                     ds.w    1                ; offset: $2 (2)        ; family ID number
  237. ffFirstChar                 ds.w    1                ; offset: $4 (4)        ; ASCII code of 1st character
  238. ffLastChar                 ds.w    1                ; offset: $6 (6)        ; ASCII code of last character
  239. ffAscent                 ds.w    1                ; offset: $8 (8)        ; maximum ascent for 1pt font
  240. ffDescent                 ds.w    1                ; offset: $A (10)        ; maximum descent for 1pt font
  241. ffLeading                 ds.w    1                ; offset: $C (12)        ; maximum leading for 1pt font
  242. ffWidMax                 ds.w    1                ; offset: $E (14)        ; maximum widMax for 1pt font
  243. ffWTabOff                 ds.l    1                ; offset: $10 (16)        ; offset to width table
  244. ffKernOff                 ds.l    1                ; offset: $14 (20)        ; offset to kerning table
  245. ffStylOff                 ds.l    1                ; offset: $18 (24)        ; offset to style mapping table
  246. ffProperty                 ds.w    9                ; offset: $1C (28)        ; style property info
  247. ffIntl                     ds.w    2                ; offset: $2E (46)        ; for international use
  248. ffVersion                 ds.w    1                ; offset: $32 (50)        ; version number
  249. sizeof                     EQU *                    ; size:   $34 (52)
  250.                         ENDR
  251. ; typedef SInt16                         FontPointSize
  252.  
  253. ; typedef SInt16                         FontFamilyID
  254.  
  255. ;
  256. ; pascal void InitFonts(void )
  257. ;
  258.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  259.         _InitFonts:    OPWORD    $A8FE
  260.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  261.         IMPORT_CFM_FUNCTION InitFonts
  262.     ENDIF
  263.  
  264. ;
  265. ; pascal void GetFontName(short familyID, Str255 name)
  266. ;
  267.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  268.         _GetFontName:    OPWORD    $A8FF
  269.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  270.         IMPORT_CFM_FUNCTION GetFontName
  271.     ENDIF
  272.  
  273. ;
  274. ; pascal void GetFNum(ConstStr255Param name, short *familyID)
  275. ;
  276.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  277.         _GetFNum:    OPWORD    $A900
  278.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  279.         IMPORT_CFM_FUNCTION GetFNum
  280.     ENDIF
  281.  
  282. ;
  283. ; pascal Boolean RealFont(short fontNum, short size)
  284. ;
  285.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  286.         _RealFont:    OPWORD    $A902
  287.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  288.         IMPORT_CFM_FUNCTION RealFont
  289.     ENDIF
  290.  
  291. ;
  292. ; pascal void SetFontLock(Boolean lockFlag)
  293. ;
  294.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  295.         _SetFontLock:    OPWORD    $A903
  296.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  297.         IMPORT_CFM_FUNCTION SetFontLock
  298.     ENDIF
  299.  
  300. ;
  301. ; pascal FMOutPtr FMSwapFont(const FMInput *inRec)
  302. ;
  303.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  304.         _FMSwapFont:    OPWORD    $A901
  305.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  306.         IMPORT_CFM_FUNCTION FMSwapFont
  307.     ENDIF
  308.  
  309. ;
  310. ; pascal void SetFScaleDisable(Boolean fscaleDisable)
  311. ;
  312.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  313.         _SetFScaleDisable:    OPWORD    $A834
  314.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  315.         IMPORT_CFM_FUNCTION SetFScaleDisable
  316.     ENDIF
  317.  
  318. ;
  319. ; pascal void FontMetrics(FMetricRecPtr theMetrics)
  320. ;
  321.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  322.         _FontMetrics:    OPWORD    $A835
  323.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  324.         IMPORT_CFM_FUNCTION FontMetrics
  325.     ENDIF
  326.  
  327. ;
  328. ; pascal void SetFractEnable(Boolean fractEnable)
  329. ;
  330.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  331.         _SetFractEnable:    OPWORD    $A814
  332.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  333.         IMPORT_CFM_FUNCTION SetFractEnable
  334.     ENDIF
  335.  
  336. ;
  337. ; pascal short GetDefFontSize(void )
  338. ;
  339.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  340.         Macro
  341.         _GetDefFontSize
  342.             dc.w                $3EB8
  343.             dc.w                $0BA8
  344.             dc.w                $6604
  345.             dc.w                $3EBC
  346.             dc.w                $000C
  347.         EndM
  348.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  349.         IMPORT_CFM_FUNCTION GetDefFontSize
  350.     ENDIF
  351.  
  352. ;
  353. ; pascal Boolean IsOutline(Point numer, Point denom)
  354. ;
  355.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  356.         Macro
  357.         _IsOutline
  358.             moveq               #0,D0
  359.             dc.w                $A854
  360.         EndM
  361.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  362.         IMPORT_CFM_FUNCTION IsOutline
  363.     ENDIF
  364.  
  365. ;
  366. ; pascal void SetOutlinePreferred(Boolean outlinePreferred)
  367. ;
  368.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  369.         Macro
  370.         _SetOutlinePreferred
  371.             moveq               #1,D0
  372.             dc.w                $A854
  373.         EndM
  374.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  375.         IMPORT_CFM_FUNCTION SetOutlinePreferred
  376.     ENDIF
  377.  
  378. ;
  379. ; pascal Boolean GetOutlinePreferred(void )
  380. ;
  381.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  382.         Macro
  383.         _GetOutlinePreferred
  384.             moveq               #9,D0
  385.             dc.w                $A854
  386.         EndM
  387.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  388.         IMPORT_CFM_FUNCTION GetOutlinePreferred
  389.     ENDIF
  390.  
  391. ;
  392. ; pascal OSErr OutlineMetrics(short byteCount, const void *textPtr, Point numer, Point denom, short *yMax, short *yMin, FixedPtr awArray, FixedPtr lsbArray, RectPtr boundsArray)
  393. ;
  394.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  395.         Macro
  396.         _OutlineMetrics
  397.             moveq               #8,D0
  398.             dc.w                $A854
  399.         EndM
  400.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  401.         IMPORT_CFM_FUNCTION OutlineMetrics
  402.     ENDIF
  403.  
  404. ;
  405. ; pascal void SetPreserveGlyph(Boolean preserveGlyph)
  406. ;
  407.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  408.         Macro
  409.         _SetPreserveGlyph
  410.             moveq               #10,D0
  411.             dc.w                $A854
  412.         EndM
  413.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  414.         IMPORT_CFM_FUNCTION SetPreserveGlyph
  415.     ENDIF
  416.  
  417. ;
  418. ; pascal Boolean GetPreserveGlyph(void )
  419. ;
  420.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  421.         Macro
  422.         _GetPreserveGlyph
  423.             moveq               #11,D0
  424.             dc.w                $A854
  425.         EndM
  426.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  427.         IMPORT_CFM_FUNCTION GetPreserveGlyph
  428.     ENDIF
  429.  
  430. ;
  431. ; pascal OSErr FlushFonts(void )
  432. ;
  433.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  434.         Macro
  435.         _FlushFonts
  436.             moveq               #12,D0
  437.             dc.w                $A854
  438.         EndM
  439.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  440.         IMPORT_CFM_FUNCTION FlushFonts
  441.     ENDIF
  442.  
  443. ;
  444. ; pascal short GetSysFont(void)
  445. ;
  446.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  447.         Macro
  448.         _GetSysFont           &dest=(sp)
  449.             move.w            $0BA6,&dest
  450.         EndM
  451.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  452.         IMPORT_CFM_FUNCTION GetSysFont
  453.     ENDIF
  454.  
  455. ;
  456. ; pascal short GetAppFont(void)
  457. ;
  458.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  459.         Macro
  460.         _GetAppFont           &dest=(sp)
  461.             move.w            $0984,&dest
  462.         EndM
  463.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  464.         IMPORT_CFM_FUNCTION GetAppFont
  465.     ENDIF
  466.  
  467. ; ---------------------------------------------------------------------------------
  468. ;
  469. ; pascal OSStatus SetAntiAliasedTextEnabled(Boolean inEnable, SInt16 inMinFontSize)
  470. ;
  471.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  472.         IMPORT_CFM_FUNCTION SetAntiAliasedTextEnabled
  473.     ENDIF
  474.  
  475. ;
  476. ; pascal Boolean IsAntiAliasedTextEnabled(SInt16 *outMinFontSize)
  477. ;
  478.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  479.         IMPORT_CFM_FUNCTION IsAntiAliasedTextEnabled
  480.     ENDIF
  481.  
  482. ; ---------------------------------------------------------------------------------
  483. ;
  484. ; pascal void QDTextBounds(short byteCount, const void *textAddr, Rect *bounds)
  485. ;
  486.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  487.         IMPORT_CFM_FUNCTION QDTextBounds
  488.     ENDIF
  489.  
  490. ;
  491. ; pascal OSErr FetchFontInfo(SInt16 fontID, SInt16 fontSize, SInt16 fontStyle, FontInfo *info)
  492. ;
  493.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  494.         IMPORT_CFM_FUNCTION FetchFontInfo
  495.     ENDIF
  496.  
  497. ; ---------------------------------------------------------------------------------
  498.  
  499.     ENDIF ; __FONTS__ 
  500.  
  501.